package com.xinghen.common.base.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author xinghen
 * @ClassName: LoginUser
 * @Package: com.xinghen.common.base.model.dto
 * @Description 登录人信息
 * @create 2018-04-13 14:39
 */
@Data
@ApiModel("登录人信息")
public class LoginUser implements Serializable {

    private static final long serialVersionUID = -1137852221455042256L;

    /**
     * 用户ID
     */
    @ApiModelProperty("用户ID")
    private Long userId;

    /**
     * 登录名
     */
    @ApiModelProperty("登录名")
    private String loginName;

    /**
     * 用户名
     */
    @ApiModelProperty("用户名")
    private String username;

    /**
     * 组织ID
     */
    @ApiModelProperty("组织ID")
    private Long groupId;

    /**
     * 组织名称
     */
    @ApiModelProperty("组织名称")
    private String groupName;

    public LoginUser() {
    }

    public LoginUser(Long userId, String loginName, String username) {
        this.userId = userId;
        this.loginName = loginName;
        this.username = username;
    }

    public LoginUser(Long userId, String loginName, String username, Long groupId, String groupName) {
        this.userId = userId;
        this.loginName = loginName;
        this.username = username;
        this.groupId = groupId;
        this.groupName = groupName;
    }
}
